package org.shj.spark.util

import java.io.FileOutputStream
import java.io.BufferedOutputStream
import java.io.File

object GenTestFile {
  def main(args: Array[String]): Unit = {
    val path = "F:/download/wordcntTest.txt"
    val str = "I love you I like you I hate her\n"
    val out = new BufferedOutputStream(new FileOutputStream(new File(path)))
    
    var cnt = 5000
    while(cnt > 0){
      out.write(str.getBytes)
      cnt -= 1
    }
    out.flush()
    out.close()
  }
}